package org.example.myleet.p802;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(Assert.isPass(new int[]{2,4,5,6}, solution.eventualSafeNodes(Parser.parse("[[1,2],[2,3],[5],[0],[5],[],[]]"))));
        Assert.isTrue(Assert.isPass(new int[]{4}, solution.eventualSafeNodes(Parser.parse("[[1,2,3,4],[1,2],[3,4],[0,4],[]]"))));
    }
}
